package com.example.lotterysystem.service;

import com.example.lotterysystem.controller.param.DrawPrizeParam;
import com.example.lotterysystem.controller.param.ShowWinningRecordsParam;
import com.example.lotterysystem.dao.dataObject.BaseDO;
import com.example.lotterysystem.dao.dataObject.WinnerRecordDO;
import com.example.lotterysystem.service.dto.WinningRecordDTO;

import java.util.List;


public interface DrawPrizeService {
    /**
     * 异步抽奖接口
     * @param param
     */
    void drawPrize(DrawPrizeParam param);

    /**
     * 校验抽奖请求
     * @param param
     */
    Boolean checkDrawPrizeParam(DrawPrizeParam param);

    /**
     * 保存中奖者名单
     * @param param
     */
    List<WinnerRecordDO> saveWinnerRecords(DrawPrizeParam param);

    /**
     * 根据活动id和奖品id去定位中奖者,定位到之后进行删除
     * @param activityId
     * @param prizeId
     */
    void deleteRecords(Long activityId,Long prizeId);

    /**
     * 获取中奖记录
     * @param param
     */
    List<WinningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
